package com.education.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("org_info")
public class OrgInfoEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("org_name")
    private String orgName;

    @TableField("address")
    private String address;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @TableField("create_date")
    private LocalDateTime createDate;

    @TableField("enable")
    private Boolean enable;

    @TableField(exist = false)
    private String orgId;

}
